package net.dgg.rz.production.entity;

import net.dgg.commons.qds.model.LoginUser;
import net.dgg.commons.qds.verification.NonEmpty;
import net.dgg.commons.qds.verification.NonNull;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 接收企大顺传入的生产订单vo
 * Created by zyou on 2019/9/25.
 */
public class QdsScOrderVo implements Serializable {
    //流程人员id
    private Long flowerId;
    //分单备注
    private String alotNote;
    //生产所属事业部
    @NonNull(message = "生产所属事业部id不能为空")
    private Long productOrgId;
    //生产所属事业部名称
    @NonEmpty(message = "生产所属事业部名称不能为空")
    private String productOrgName;
    //销售主订单vo
    @NotNull(message="销售主订单信息不能为空")
    private OrderVo orderVo;
    //生产订单vo
    @NotNull(message="生产订单信息不能为空")
    private List<GsScOrderVo> gsScOrderVos;
    //操作人信息
    @NotNull(message="登录人信息不能为空")
    private LoginUser loginUser;

    public Long getFlowerId() {
        return flowerId;
    }

    public void setFlowerId(Long flowerId) {
        this.flowerId = flowerId;
    }

    public String getAlotNote() {
        return alotNote;
    }

    public void setAlotNote(String alotNote) {
        this.alotNote = alotNote;
    }

    public Long getProductOrgId() {
        return productOrgId;
    }

    public void setProductOrgId(Long productOrgId) {
        this.productOrgId = productOrgId;
    }

    public String getProductOrgName() {
        return productOrgName;
    }

    public void setProductOrgName(String productOrgName) {
        this.productOrgName = productOrgName;
    }

    public OrderVo getOrderVo() {
        return orderVo;
    }

    public void setOrderVo(OrderVo orderVo) {
        this.orderVo = orderVo;
    }

    public List<GsScOrderVo> getGsScOrderVos() {
        return gsScOrderVos;
    }

    public void setGsScOrderVos(List<GsScOrderVo> gsScOrderVos) {
        this.gsScOrderVos = gsScOrderVos;
    }

    public LoginUser getLoginUser() {
        return loginUser;
    }

    public void setLoginUser(LoginUser loginUser) {
        this.loginUser = loginUser;
    }
}
